package com.hongkuncheng.cms.helper;

/**
 * 目录帮助类
 *
 * @author 洪坤成
 */
public class DirectoryHelper {

    /**
     * 检测特殊目录
     *
     * @return
     */
    public static boolean checkSpecial(String directory) {
        boolean result = false;
        String[] specialDirectorys = new String[]{"error", "template", "upload", "admin", "frontpage", "index",
                "interfaces", "validatecode", "detail"};
        for (String specialDirectory : specialDirectorys) {
            if (specialDirectory.equalsIgnoreCase(directory)) {
                result = true;
                break;
            }
        }
        return result;
    }

}
